import service from '../utils/request'

//1.商品列表
export function pro_list( payload = {} ){
    return service.get( '/pro/list', {params:payload})
}
//2.获取商品的分类
export function pro_getCategory( payload = {} ){
    return service.get( '/pro/getCategory', {params:payload})
}
//3.详情
export function pro_detail( payload = {} ){
    return service.get( '/pro/detail', {params:payload})
}
//4.获取秒杀或者推荐的列表
export function pro_showdata( payload = {} ){
    return service.post( '/pro/showdata', payload)
}
//5.修改商品是否推荐或者秒杀
export function pro_updateFlag( payload = {} ){
    return service.post( '/pro/updateFlag', payload)
}
//6.筛选商品
export function pro_searchPro( payload = {} ){
    return service.post( '/pro/searchPro', payload)
}